package org.example.idea;

public class FieldBreakPoint {

    private String name = "hello";

    public static void main(String[] args) {
        //在字段被修改的时候，会进入断点
        FieldBreakPoint fieldBreakPoint = new FieldBreakPoint();
        fieldBreakPoint.setName("world");
        fieldBreakPoint.test();

    }

    public void setName(String name) {
        this.name = name;
    }

    public void test() {
        int i = 0;
        i++;
        i++;
        i++;
        this.name = "haha";
        i++;
        i++;
        System.out.println(i);
    }
}
